package com.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: hdu_huang
 * @Date: 2018/12/18 11:38
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class User implements Cloneable, Json{

    private int id;
    private int age;
    private String name;

    public static User getCommonUser() {
        return User.builder().id(1001).age(25).name("YG").build();
    }

    public static void main(String[] args) {
        User commonUser = getCommonUser();
        System.out.println(commonUser.toJsonString());
    }
}
